package org.hxyjs.service;

import org.hxyjs.dto.DTO;

import org.hxyjs.entity.Integral;
import org.hxyjs.page.PageInfo;

public interface IntegralService {
    /**
     * 查询全部
     * @return
     */
    public DTO<Integral> getAllIntegrals() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<Integral> getIntegralByUno(String inno) throws Exception;
    /**
     *删除
     * @param inno
     * @return
     */
    public DTO<Integral> deleteIntegral(String inno) throws Exception;
    /**
     *  修改
     * @param integral
     * @return
     */
    public DTO<Integral> updateIntegral(Integral integral)  throws Exception;
    /**
     *  增加
     * @param integral
     * @return
     */
    public DTO<Integral> addIntegralByUno(Integral integral)  throws Exception;

    public DTO<Integral> getIntegralsByPage(PageInfo pageInfo) throws Exception;

    public DTO<Integral> getIntegralsWithOrders(String  inno)  throws Exception;

    public DTO<Integral> activate(String  inno)  throws Exception;

    public DTO<Integral> lettory(String  inno,String giftName)  throws Exception;




}
